<?php

/*
 * Created on 2009/03/22
 *
 */

require_once('classes'.DIRECTORY_SEPARATOR.'advertise'.DIRECTORY_SEPARATOR.'classes.advertiseEntity.php');

class Advertise {
	var $adv_files_dir;
	var $advertiseEntities;

	function __construct($dir) {
		$this->adv_files_dir = $dir;
		$iter = new DirectoryIterator($this->adv_files_dir);
		foreach ($iter as $value) {
			if ( !$this->isDot() ) {
					$advertiseEntity = new AdvertiseEntity($value);
					$this->advertiseEntities[] = $advertiseEntity;
			}
		}
	}

	function getAdvertiseEntities() {
		return $this->advertiseEntities;
	}
	
}
?>
